<?php

if (!defined('BASEPATH'))
    exit('No direct script access allowed');

class Albums_model extends CI_Model {

    private $_table_name = 'albums';

    public function get_albums($num, $offset) {
        $this->db->order_by("album_date", "desc");
        $query = $this->db->get($this->_table_name, $num, $offset);
        return $query->result();
    }

}